<?php

class Cache_Slot_Query extends Cache_Slot_Abstract 
{
	public function __construct(Db_Select $query, $time = 21600)
	{
		if (!$query instanceof Db_Select) {
			throw new Exception_InvalidArgument("Not query given");
		}
		parent::__construct(md5($query->__toString()), $time);	
	}
}